package com.company.behavioral.mediator_pattern.concrete_colleague;

import com.company.behavioral.mediator_pattern.colleague.Component;

/**
 * 文本框
 * @ClassName TextBox
 * @Author tiezheng.han
 * @Date 2020/9/4 17:13
 **/
public class TextBox extends Component {
    @Override
    public void update() {
        System.out.println("客户信息增加成功后文本框清空。");
    }

    public void setText(){
        System.out.println("文本框显示：小龙女。");
    }
}
